<?php
include('connect.php');

$con=Conectarse();

$sql_query = 'select * from "Libros" where "Autor" like \'osho\'';

$query = pg_Exec($con, $sql_query);

?>
<html>
<head>
	<title>REDES-TEST-PHP</title>
</head>
<body>

<ul>
<?
	while ($data = pg_fetch_object($query)) {
?>
	<li>
<?
		echo "Libro:" . $data->Titulo . " (";
		echo "ISBN: " . $data->ISBN . ") ";
		echo "Precio: " . $data->Precio ;
?>
	</li>
<?
	}
?>
</ul>

</body>
</html>

